home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / PRINTER / PCLTOOLS / psprite / psprite.ma < prev   
Text File  |  1997-10-05  |  4KB  |  101 lines

  1. psprite - dither sprites to B/W or CMYK sprites / PCL data
  2. ==========================================================
  3.  
  4.  
  5. Initially it was supposed to just print sprites - hence the name. Well,
  6. _really_ initially I just wanted to see how long it takes to b/w-dither
  7. (error-diffusion) a page @ 600dpi. But like so often it just grew and
  8. grew...
  9.  
  10. The output can be either a sprite or PCL data. While the b/w PCL data
  11. should be usable on pretty much any PCL printer the colour-PCL can only
  12. be used on CMYK printers (the keyword being `K').
  13.  
  14.  
  15. Disadvantages compared to using !Printers:
  16.  
  17. - Command-line driven.
  18. - Can only print sprites, no mixing in of text or drawfiles possible.
  19. - Gotta specify the size by hand and accurately.
  20.  
  21. Advantages:
  22.  
  23. - About 4 times faster.
  24. - Runs in the background in a taskwindow.
  25. - Neither source sprite nor the resulting data has to fit in memory.
  26.   You can easily print a 20MB sprite from a 640k TaskWindow. The
  27.   available memory will be used as a buffer, i.e. the larger your
  28.   WimpSlot the more efficiently it runs (although you shouldn't
  29.   need more than 1MB ever).
  30. - Can print new type sprites (16, 32bpp) on old machines.
  31. - Brightness control.
  32.  
  33.  
  34. Brightness control is done using a cubic polynome. The default is a
  35. straight line; the fixpoints are f(0) = 0 and f(X) = X where X is
  36. the maximum spectral value. You can specify the values to use at
  37. X/3 and 2X/3 to determine the curve.
  38.  
  39. With B/W spectral values range from 0 to 765. The picture gets lighter
  40. by setting f(X/3) > X/3 and f(2X/3) > 2X/3. Good brightness for a 600dpi
  41. Laserjet is -B352,576.
  42. With CMYK spectral values range from 0 to 255. The picture gets lighter
  43. by setting f(X/3) < X/3 and f(2X/3) < 2X/3.
  44.  
  45.  
  46. Switches:
  47. ---------
  48.  
  49. -B#,#    Brightness control for B/W. The default function is a straight
  50.     line, i.e. -B255,510
  51. -C#,#    Brightness control for Cyan. The default function is a straight
  52.     line, i.e. -C85,170
  53. -M#,#    Brightness control for Magenta. See Cyan.
  54. -Y#,#    Brightness control for Yellow. See Cyan.
  55.  
  56. -x#    (maximum) width. Default value is 1024.
  57. -y#    (maximum) height. If no maximum height is given the destination
  58.     data will have the width specified with -x. Otherwise the width
  59.     will be shrunk if the height would exceed the value specified
  60.     with -y. Sprites are always plotted preserving the ratio.
  61.  
  62. -q    Slightly faster ditherer that uses 2-way error-diffusion. The
  63.     default ditherer does a somewhat more sophisticated 3-way
  64.     diffusion.
  65. -c    Colour (CMYK) output. Default is B/W.
  66. -h    Hourglass and percentage, otherwise no feedback.
  67. -p    Output is PCL data. Default is sprite.
  68.  
  69. The following switches only have a meaning when using PCL output:
  70.  
  71. -d#    dpi to use in the printer. Default 600.
  72. -u#    x-position of raster area in resolution-units. Default 100.
  73. -v#    y-position of raster area in resolution-units. Default 100.
  74. -f#    Page format number. Default 26 (A4). See PCL manuals.
  75. -s    don't reset printer.
  76. -n    no formfeed. In conjunction with -s you can print multiple
  77.     sprites on one page: for the first one just turn off the
  78.     formfeed (-n). For each but the last turn off both reset
  79.     and formfeed (-n -s). For the last just turn off the reset
  80.     (-s). Make sure you issue the right positioning commands
  81.     when you do this or you'll superimpose all your sprites.
  82. -r    CMYK only: rich black, i.e. print CMY-black in addition to
  83.     K-black. Default off.
  84.  
  85.  
  86.  
  87. THIS PROGRAM IS FREEWARE. YOU MAY COPY IT FREELY AS LONG AS NO PART OF IT
  88. IS CHANGED AND IT'S NOT SOLD FOR PROFIT. I RETAIN THE COPYRIGHT.
  89. I WILL NOT ACCEPT ANY RESPONSIBLITY FOR ANY DAMAGES CAUSED BY THE USE OF
  90. THIS PROGRAM, IMPLICITLY OR EXPLICITLY. USE IT ENTIRELY AT YOUR OWN RISK.
  91.  
  92.  
  93.  
  94.  
  95. Andreas Dehmel
  96. Am Schorn 18
  97. 82327 Tutzing
  98. Germany
  99.  
  100. dehmel@forwiss.tu-muenchen.de
  101.